/*
  Copyright (c) 2009-10 by kRaw1er & HierOS
  This file is part of M8J project
*/
#pragma once

#include <mzfc_inc.h>
#include <sstream>
#include "../defs.h"
#include "../resource/resource.h"

void LoadLang(LANG lang);
void LoadGraphics();

std::wstring fromUTF8(const std::string &str);
std::string toUTF8(const std::wstring &str);
std::string toLower(const std::string &str);
std::wstring toLower(const std::wstring &str);
bool IsToday(SYSTEMTIME time);
CMzString GetMyPath();
CMzString accIniFile();
CMzString optIniFile();
bool RegReadDWORD(IN HKEY const hKeyName,IN LPCTSTR lpSubKey,IN LPCTSTR lpValueName,OUT DWORD &dwValue);
bool RegWriteDWORD(IN HKEY const hKeyName,IN LPCTSTR lpSubKey,IN LPCTSTR lpValueName,IN DWORD const dwValue,IN bool bCreateKey);